import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("请输入角度：");
        Scanner sca =new Scanner(System.in);
        int degrees= sca.nextInt();
        int minutes= sca.nextInt();
        double seconds= sca.nextDouble();
        double minutes1= minutes/60;
        double seconds1=seconds/3600;
        double degrees1=degrees+minutes1+seconds1;
        double radians = degrees1 * Math.PI / 180;
        System.out.println(radians);
    }
}
